package com.neuedu.controller.check;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.neuedu.bean.CheckRequestSub;
import com.neuedu.bean.RestBean;
import com.neuedu.service.check.CheckInputService;

/**
 * 检查管理：检查结果录入
 */
@RestController
public class CheckInputController {
//	@Autowired
	private CheckInputService checkInputSerivce;
	@RequestMapping("getFinishCheck")
	public RestBean getFinishCheck(String caseNumber
			,String realName
			,Integer nowPageNumber
			,Integer pageSize) {
		return checkInputSerivce.getFinishCheck(caseNumber,realName,nowPageNumber,pageSize);
	}

	@RequestMapping("getFinishCheckByRegistid")
	public List<CheckRequestSub> getFinishCheckByRegistid(String id){
		return checkInputSerivce.getFinishCheckByRegistid(id);
	}
	
	@PostMapping("updateCheckInput")
	public RestBean updateCheckInput(String id
			,String employeeId
			,String checkResult) {
		return checkInputSerivce.updateCheckInput(id,employeeId,checkResult);
	}
}
